package com.quanyan.comment.reqeust;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/5/26
 * 评论子项目请求对象.
 */
public class ReqCommentDetailScore implements Serializable{


    /**
     * 评论详情编码
     */
    private Integer commentDetailId;

    /**
     * 分数
     */
    private Double score;



    public ReqCommentDetailScore(Integer commentDetailId, Double score) {
        super();
        this.commentDetailId = commentDetailId;
        this.score = score;
    }

    public ReqCommentDetailScore() {
    }

    public Integer getCommentDetailId() {
        return commentDetailId;
    }

    public void setCommentDetailId(Integer commentDetailId) {
        this.commentDetailId = commentDetailId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }




    @Override
    public String toString() {
        return "ReqCommentDetailScore{" +
                "commentDetailId='" + commentDetailId + '\'' +
                ", score=" + score +
                '}';
    }

    public Map<String,Object> toMap(){
        Map<String,Object> map = new HashMap<String ,Object>();
        map.put("commentDetailId",this.getCommentDetailId());
        map.put("score",this.getScore());
        return  map;
    }
}
